<template>
	<view class="bottom">
		<u-tabbar
			:value="value1"
			@change="change1"
			:fixed="false"
			:placeholder="false"
			:safeAreaInsetBottom="false"
		>
			<u-tabbar-item text="首页" icon="home" @click="click1" ></u-tabbar-item>
			<u-tabbar-item text="公告" icon="bell" @click="click1" ></u-tabbar-item>
			<u-tabbar-item text="我的" icon="account" @click="click1" ></u-tabbar-item>
		</u-tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value1: 0,
			}
		},
		methods: {
			change1(e) {
				this.value1 = e
				console.log('change1', e);
			},
			click1(e) {
				console.log('click1', e);
			}
		}
	}
</script>

<style lang="scss" scoped>
.bottom {
	width: 100%;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
}
</style>
